<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/include/taglibs.jsp"%>
<html>
<head>
<title>${article.title}</title>
<style>
	#left {float:padding:5px 5px 5px 5px;width:70%;}
   #right {float:right;width:28%;}
</style>
</head>
<body marginheight="0">
<div id="left">
<p>
<h1>${article.title}(${article.hot}次阅读)
<c:if test="${not empty isAuthor}">
<a href="editArticle.html?id=${article.articleId}">修改文章</a>
</c:if>
<%@  include   file="/include/saveArticleStatus.jsp"%>
</h1>
<br>
<div class=indent>
来自:${article.source}&nbsp;&nbsp;<br>
作者:${article.author}&nbsp;&nbsp;发表于:${article.publishDate}<br>
<img class=smallFansIcon src="${article.recomFans.icon}"/>
<a href="user/${article.recomFans.name}">${article.recomFans.nickName}</a>&nbsp;最先收藏于&nbsp;${article.submitDate}<br>
<p>${article.content} </p><br />
<c:if test="${not empty article.url}">
该文章的原文地址为：<a target="_blank" href="${article.url}">${article.url}</a><br>
</c:if>
</div>
<h3>已有评论</h3>
<div class=indent>
<c:forEach items="${article.comments}" var="c">
	 ${c.content}<br>
	 <img class=smallFansIcon src="${c.fans.icon}"/><a href="user/${c.fans.name}">${c.fans.nickName}</a>评论于${c.commentDate}<br>
	 -------------------------------------------------------------------------<br>
</c:forEach>
</div>
<h3>添加你的评论:</h3>
<div class=indent>
<c:if test="${empty isAuthor}">
<p>目前有${article.usedNum}人认为有用，有${article.uselessNum}人认为没用
<p>您认为这篇文章对您
<a href="judgeArticle.html?id=${article.articleId}&use=used">有用</a>&nbsp;
<a href="judgeArticle.html?id=${article.articleId}&use=useless">没用</a>
</c:if>
</div>

<form name="comment" method="post" action="commentArticle.html">
<table class="detail">
<spring:bind path="article.articleId">
<input type="hidden" name="id" value="${status.value}"/> 
</spring:bind>
<tr>
    <td>
        <spring:bind path="comment.content">
        <textarea name="${status.expression}"  cols="40" rows="10" type="_moz">${status.value}</textarea>
        <span class="fieldError">${status.errorMessage}</span>
        </spring:bind>
    </td>
</tr>
<tr>
    <td align=center>
        <input type="submit" class="button" name="save" value="评论"/>
      	<input type="button" class="button" name="cancel" value="返回" onclick="history.back(-1)"/>
    </td>
</tr>
</table>
</form>

</div>
<div id="right">
<h2>相关标签</h2>
<div class=indent>
<span id="articleTags_${article.articleId}">
<c:forEach items="${article.tagSet}" var="tag">
	<a class=tag href="viewTag/${tag.tagId}">${tag.title}</a>&nbsp;&nbsp;
	   </c:forEach>
</span>
</div>

<h2>相关文章</h2>
<div class=indent>
<c:forEach items="${relArticles}" var="article">
	 <span class="smallLink">•<a href="viewArticle/${article.articleId}">${article.title}</a><br></span>
</c:forEach>
</div>
<br>
<div class="tips">
　　如果你在网上看到感兴趣的的Feed，可以点击<a href="newFeed.html">导入Feed</a>，这样你可以在<a href="listFeedItem.html">最新日志</a>中跟踪该Feed的动向,还可以收藏其中的日志，让更多需要这方面知识的fans看到。
</div>
</div>
</body>
</html>
